package steed.ext.action.admin.wechat;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.InterceptorRef;
import org.apache.struts2.convention.annotation.InterceptorRefs;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.ParentPackage;

import steed.action.annotation.Power;
import steed.domain.wechat.WechatAccount;
import steed.domain.wechat.WechatUser;
import steed.ext.action.admin.DwzAdminAction;
import steed.hibernatemaster.util.DaoUtil;
@ParentPackage(value="steed")
@InterceptorRefs({@InterceptorRef(value="mydefault")})
@Namespace("/admin/wechat/wechatUser")
@Power("管理微信粉丝")
public class WechatUserAction extends DwzAdminAction<WechatUser>{
	private static final long serialVersionUID = 2917184309474601008L;
	@Action("index")
	@Power("查看微信粉丝列表")
	public String index(){
		setRequestAttribute("wechatAccounts", DaoUtil.listAllCustomField(null, WechatAccount.class, "accountName","appID"));
		return super.index();
	}
}
